package com.epichust.bootumpp.service.impl;

import com.epichust.bootumpp.model.dao.Mbb5ProduBomDao;
import com.epichust.bootumpp.model.entity.Mbb5ProduBom;
import com.epichust.bootumpp.service.IMbb5ProduBomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
//@Async("taskExecutor")
@Transactional
public class Mbb5ProduBomServiceImpl implements IMbb5ProduBomService {

    @Autowired
    private Mbb5ProduBomDao mbb5ProduBomDao;

    @Override
    public List<Mbb5ProduBom> getAllMbb5ProduBom(Map<String, String> map) {
        List<Mbb5ProduBom> list = mbb5ProduBomDao.getAllMbb5ProduBom(map);
        return list;
    }

    @Override
    public List<Map> getAllBom(Map<String, String> map) {
        List<Map> list = mbb5ProduBomDao.getAllBom(map);
        return list;
    }

    @Override
    public List<Mbb5ProduBom> getAllBomByParams(Map<String, String> map) {
        List<Mbb5ProduBom> list = mbb5ProduBomDao.getAllBomByParams(map);
        return list;
    }
}
